<template>
  <div style="width: 1200px;">
      <label>商品列表</label>
      <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item label="搜索">
        <el-input v-model="formInline.name" placeholder="输入搜索条件" clearable />
      </el-form-item>
      <el-form-item label="筛选">
        <el-select
          v-model="formInline.status"
          placeholder="常用条件筛选"
          clearable
        >
          <el-option label="审核" value="1" />
          <el-option label="待审核" value="0" />
        </el-select>
      </el-form-item>
      <el-form-item label="修改日期">
        <el-date-picker
          v-model="formInline.date"
          type="date"
          placeholder="选择日期"
          clearable
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">查询</el-button>
      </el-form-item>
    </el-form>
        <div class="action-buttons" :inline="true">
          <el-button type="primary">引入</el-button>
          <el-button>引用</el-button>
          <el-button>引出</el-button>
          <el-button>分类管理</el-button>
        </div>
  </div>
</template>

<script lang="ts" setup>
import { reactive } from 'vue'

const formInline = reactive({
  name: '',
  status: '',
  date: '',
})

const onSubmit = () => {
  console.log('submit!')
}
</script>

<style>
.demo-form-inline .el-input {
  --el-input-width: 220px;
}

.demo-form-inline .el-select {
  --el-select-width: 220px;
}
</style>
